<template>
  <div class="roseEchart">
    <baseEchart :options="options"></baseEchart>
  </div>
</template>

<script setup>
import { computed, defineProps } from "vue";
import baseEchart from "@/base-ui/echart";
const props = defineProps({
  areadata: {
    type: Array,
  },
});
const options = computed(() => {
  return {
    toolbox: {
      show: true,
      feature: {
        mark: { show: true },
        dataView: { show: true, readOnly: false },
        restore: { show: true },
        saveAsImage: { show: true },
      },
    },
    series: [
      {
        name: "类别数据",
        type: "pie",
        radius: [10, 100],
        center: ["50%", "50%"],
        roseType: "area",
        itemStyle: {
          borderRadius: 8,
        },
        data: props.areadata,
      },
    ],
  };
});
</script>

<style lang="scss" scope>
.roseEchart {
}
</style>
